package com.jurassic.demo.designMode.factory;

import java.math.BigDecimal;

/**
 * @Author pan_jin
 * @Description: $
 * @Date: 2022/7/13 9:15
 * @Version: 1.0.0
 * @Slogan: 梦想还是要有的万一实现了呢
 */
public class NumberFactoryImpl implements NumberFactory{
    @Override
    public Number parse(String num) {
        return new BigDecimal(num);
    }
}
